
import LanguageMng from "../Managers/LanguageMng";

cc.Class({
    extends: cc.Component,

    properties: {
        day2:{
            default:null,
            type:cc.Node
        },
        day3:{
            default:null,
            type:cc.Node
        }
    },

    // LIFE-CYCLE CALLBACKS:

    // onLoad () {},

    start () {

    },

    // update (dt) {},

    showDay1Notice:function () {
        this.day2.active = true
        this.setDayLabel(this.day2,2)
        this.day3.active = true
        this.setDayLabel(this.day3,3)
    },

    showDay2Notice:function () {
        this.day2.active = false
        this.day3.active = true
        this.setDayLabel(this.day3,3)
    },

    showDay3Notice:function () {
        this.node.active = false
    },

    setDayLabel:function (node,dayNum) {
        node.getChildByName("label").getComponent(cc.Label).string = LanguageMng.getSentence(173)+" "+dayNum
    }
});
